﻿namespace Dcms.IDAL
{
    using Dcms.Model;
    using System;
    using System.Collections.Generic;

    public interface IDcms_PermissionDAL
    {
        Dcms_PermissionModel AddModel(Dcms_PermissionModel model);
        void DeleteModelByID(int ID);
        string GetDataCount(string SqlStr);
        IList<Dcms_PermissionModel> GetDataListByPage();
        IList<Dcms_PermissionModel> GetDataListByPage(string SqlStr, int CurPage, int PageSize);
        int GetMaxModelKeyID(string strPermission_Flag);
        Dcms_PermissionModel GetModelByID(int ID);
        IList<Dcms_PermissionModel> GetModelList(int Id);
        int GetPermissionIdByFlag(string Flag);
        IList<Dcms_PermissionModel> GetUserPermissionModel(int ParentID);
        IList<Dcms_PermissionModel> GetUserPermissionModelByRoleId(int ParentID, string pIdstr);
        Dcms_PermissionModel Update(Dcms_PermissionModel model);
    }
}

